﻿using System.Data.Linq.Mapping;
using Moneyman.Infrastructure;

namespace Moneyman.DataModel
{
    [Table(Name = "Places")]
    public partial class PlaceInfo : NotificationObject
    {
        private string guid = System.Guid.NewGuid().ToString();
        [Column(IsPrimaryKey = true)]
        public string Guid
        {
            get { return guid; }
            set
            {
                guid = value;
                RaisePropertyChanged(() => Guid);
            }
        }

        private string place;
        [Column]
        public string Place
        {
            get
            {
                return place;
            }
            set
            {
                place = value;
                RaisePropertyChanged(() => Place);
            }
        }

        private string province;
        [Column]
        public string Province
        {
            get { return province; }
            set
            {
                province = value;
                RaisePropertyChanged(() => Province);
            }
        }

        private string city;
        [Column]
        public string City
        {
            get { return city; }
            set
            {
                city = value;
                RaisePropertyChanged(() => City);
            }
        }

    }
}
